@font-face {
  font-family: 'YouSheBiaoTiHei';
  src: url('/public/fonts/YouSheBiaoTiHei.ttf') format('truetype');
}

.you-she-font {
  font-family: 'YouSheBiaoTiHei', sans-serif;
}

/* 全局自定义滚动条样式 - 适配深蓝色背景 */
::-webkit-scrollbar {
  width: 8px; /* 垂直滚动条宽度 */
  height: 8px; /* 水平滚动条高度 */
}

::-webkit-scrollbar-track {
  background: rgba(0, 20, 40, 0.5); /* 滚动条轨道 - 深蓝透明色 */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    #1890ff,
    #0050b3
  ); /* 滚动条滑块 - 蓝色渐变 */
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #40a9ff, #007bff); /* 滑块悬停效果 */
}

::-webkit-scrollbar-corner {
  background: rgba(0, 20, 40, 0.5); /* 滚动条角落 */
}

/* Firefox浏览器支持 */
* {
  scrollbar-width: thin;
  scrollbar-color: #1890ff rgba(0, 20, 40, 0.5);
}

.App {
  text-align: center;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
